package cn.d2005.attachdemo.service.impl;

import cn.d2005.attachdemo.dao.OrderMapper;
import cn.d2005.attachdemo.model.Order;
import cn.d2005.attachdemo.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class OrderServiceImpl implements OrderService {
    @Resource
    private OrderMapper orderMapper;

    @Override
    public int addOrder(Order order) {
        return orderMapper.addOrder(order);
    }

    @Override
    public List<Order> findList() {
        return orderMapper.findList();
    }

    @Override
    public Order selectById(Integer id) {
        return orderMapper.selectById(id);
    }
}
